﻿<Window x:Class="CI.UI.Prototypes.GraphSharpLayoutWindow"
        x:Name="root"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Background="{StaticResource WindowBackgroundBrush}"
        xmlns:graph="clr-namespace:GraphSharp.Controls;assembly=GraphSharp.Controls"
        xmlns:zoom="clr-namespace:WPFExtensions.Controls;assembly=WPFExtensions"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        Title="MainWindow" Height="600" Width="800" WindowState="Maximized">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <StackPanel Orientation="Vertical" Grid.Column="0" Grid.Row="0" Margin="2">
            <TextBlock FontSize="32" FontWeight="Bold"><Run Text="Prototype UI"/></TextBlock>
            <ScrollViewer HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" VerticalScrollBarVisibility="Auto">
            	<StackPanel>
            		<Expander Header="Planetary Interaction" IsExpanded="true">
            			<Grid Margin="4">
            				<Grid.RowDefinitions>
            					<RowDefinition Height="Auto"/>
            					<RowDefinition Height="Auto"/>
            				</Grid.RowDefinitions>
            				<ComboBox x:Name="ItemSelector" ItemsSource="{Binding Path=AvailableItems}" Margin="0" DisplayMemberPath="TypeName" SelectedValuePath="Key" VerticalAlignment="Bottom" />
            				<Button x:Name="AddItem" Click="AddItem_Click" Content="Add Item" VerticalAlignment="Bottom" Grid.Row="1" Margin="0,4,0,0"/>
            			</Grid>
            		</Expander>
            		<Expander Header="Diagram Layout" IsExpanded="true">
            			<Grid Margin="4">
            				<Grid.RowDefinitions>
            					<RowDefinition Height="Auto"/>
            					<RowDefinition Height="Auto"/>
            				</Grid.RowDefinitions>
            				<ComboBox x:Name="LayoutAlgorithms" SelectionChanged="LayoutAlgorithms_SelectionChanged"/>
            				<Button x:Name="Redraw" Click="RedrawButton_Click" Content="Redraw" Grid.Row="1" Margin="0,4,0,0"/>
            			</Grid>
            		</Expander>
            	</StackPanel>
            </ScrollViewer>
        </StackPanel>
        <zoom:ZoomControl x:Name="Zoom" Grid.Column="1" Grid.Row="0" Background="{StaticResource WindowBackgroundBrush}">
            <graph:GraphLayout x:Name="graphLayout" LayoutAlgorithmType="LinLog" OverlapRemovalAlgorithmType="FSA" HighlightAlgorithmType="Simple" Background="{StaticResource WindowBackgroundBrush}">
            
            </graph:GraphLayout>
        </zoom:ZoomControl>

        <!--
                <sukram:ZoomBox
                    Grid.Column="1" Grid.Row="0"
            		HorizontalAlignment="Left"
            		VerticalAlignment="Top"
            		ScrollViewer="{Binding ElementName=DesignerScrollViewer}"
            		Margin="20,20,0,0" Width="180"/>        	
        -->
        
    </Grid>
</Window>
